package StructuralPattern.Decoration;

import java.io.*;
import java.util.zip.GZIPInputStream;

public class TestDecorator {
    public static void main(String[] args) throws IOException {
        // 创建原始的数据源:
        InputStream fis = new FileInputStream("test.gz");
        // 增加缓冲功能:
        InputStream bis = new BufferedInputStream(fis);
        // 增加解压缩功能:
        InputStream gis = new GZIPInputStream(bis);

    }
}
